package com.mcz.yun4book.dao.mapper;


import com.mcz.yun4book.entity.Book;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;


import java.util.List;



public interface BookMapper extends JpaRepository<Book,Integer> {



    Page<Book> findByNameContainingAndPubContainingOrderByIdDesc(String name, String pub, Pageable pageable);

}
